﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="Create.ascx.vb" Inherits="Control_OtherList_Create" %>

 <script type="text/javascript" >
     function ajaxJquery() {
         $(function () {
             var isAsyncPostback = Sys.WebForms.PageRequestManager.getInstance().get_isInAsyncPostBack();
             if (isAsyncPostback) {
                 tb_init('a.thickbox, area.thickbox, input.thickbox');
             }
         });
     }
     function setKeyWordValue(value, sListId) {
         $("#<%=txtKeyword.ClientID()%>").val(sListId);
         $("#<%=txtStrKeyWord.ClientID()%>").val(value);
         removeAllOption('selKeyWord');
         appendOptionLast(sListId, value, 'selKeyWord');

     }
     function getKeywordValue() {
         return $("#<%=txtKeyword.ClientID()%>").val();
     }
</script>
<asp:UpdatePanel ID="uplOtherlist" runat="server">
<ContentTemplate>
<div  class="BoxField">

    <div class="HeadTitle">
         <h3>
            <asp:Label ID="Label3" runat="server" Text="THÊM DANH MỤC nguy cơ" /></h3>
     </div>
   <div class="DivRequired">
       <span class="fieldRequired">&nbsp;</span>Trường yêu cầu nhập dữ liệu
   </div>
   <div class="Error">
      <asp:ValidationSummary ID="ValidationSummary1" runat="server" ForeColor="#FF3300" />
  </div>

		<div class="DivRow">
		<div  class="DivLabel">
			<asp:Label ID="Label1" CssClass="TextLabel" runat="server" Text="Ngôn ngữ:" /> <span class="fieldRequired">&nbsp;</span>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="ddlLanguageId"
                Display="None" ErrorMessage="Vui lòng chọn ngôn ngữ" SetFocusOnError="True" />
		</div>
		<div  class="DivTextBox" >
			<asp:DropDownList ID="ddlLanguageId" CssClass="DropDownList" runat="server" 
                AutoPostBack="True"  />

		</div>
		</div>

		<div class="DivRow">
		<div  class="DivLabel">
			<asp:Label ID="Label2" CssClass="TextLabel" runat="server" Text="Loại danh mục:" /><span class="fieldRequired">&nbsp;</span>
              <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="ddlDanhMucType"
                Display="None" ErrorMessage="Vui lòng chọn loại danh mục" SetFocusOnError="True" />
		</div>
		<div  class="DivTextBox" >
			<asp:DropDownList ID="ddlDanhMucType" CssClass="DropDownList" runat="server" />
		</div>
		</div>

		<div class="DivRow">
		<div  class="DivLabel">
			<asp:Label ID="lblPhanloai" CssClass="TextLabel" runat="server" 
                Text="Phân loại:" /><span class="fieldRequired">&nbsp;</span>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtPhanloai"
                Display="None" ErrorMessage="Vui lòng nhập phân loại" SetFocusOnError="True" />
		</div>
		<div  class="DivTextBox" >
			<asp:TextBox ID="txtPhanloai" CssClass="TextBox" runat="server" Text="" />
		</div>
		</div>
		<div class="DivRow">
		<div  class="DivLabel">
			<asp:Label ID="lblHinhdo" CssClass="TextLabel" runat="server" Text="Hình đồ" /><%--<span class="fieldRequired">&nbsp;</span>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtKeyword"
                Display="None" ErrorMessage="Vui lòng chọn hình đồ" SetFocusOnError="True" />--%>
		</div>
		<div  class="DivTextBox" >
                <div class="DivTextBox">
                    <select multiple="multiple" id="selKeyWord" style="width: 250px; height: 100px" class="TextBox">
                    </select>
                    &nbsp;<asp:HyperLink ID="hplSelKeyWord" runat="server" CssClass="btn">Chọn</asp:HyperLink>
                </div>

		</div>
		</div>
		<div class="DivRow">
		<div  class="DivLabel">
			<asp:Label ID="lblTucanhbao" CssClass="TextLabel" runat="server" 
                Text="Từ cảnh báo:" /><span class="fieldRequired">&nbsp;</span>
                       <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtTucanhbao"
                Display="None" ErrorMessage="Vui lòng nhập từ cảnh báo" SetFocusOnError="True" />
		</div>
		<div  class="DivTextBox" >
			<asp:TextBox ID="txtTucanhbao" CssClass="TextArea" runat="server" Text="" TextMode="MultiLine" />

		</div>
		</div>
		<div class="DivRow">
		<div  class="DivLabel">
			<asp:Label ID="lblCanhbaonguyco" CssClass="TextLabel" runat="server" 
                Text="Cảnh báo nguy cơ:" /><span class="fieldRequired">&nbsp;</span>
<asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="txtCanhbaonguyco"
                Display="None" ErrorMessage="Vui lòng nhập cảnh báo nguy cơ" SetFocusOnError="True" />
		</div>
		<div  class="DivTextBox" >
			<asp:TextBox ID="txtCanhbaonguyco" CssClass="TextArea" runat="server" Text="" TextMode="MultiLine" />
		</div>
		</div>
		<div class="DivRow">
		<div class="DivLabel" >&nbsp;&nbsp;&nbsp;</div>
		<div class="DivTextBox" ><div style="float:left" >
			<asp:Button ID="btnSave" runat="server" Text=" Lưu " CssClass="btn" />
			&nbsp;<asp:Button ID="btnSaveAndNew" runat="server" CssClass="btn" Text=" Lưu &amp; Làm mới" />
			&nbsp;<asp:Button ID="btnReset" runat="server" CausesValidation="false" CssClass="btn" Text="Làm lại" /></div><div style=" float:right; text-align: right">
			 &nbsp;<asp:ImageButton ID="btnBack" ImageAlign ="AbsMiddle" ToolTip="Quay lại" runat="server" ImageUrl="~/images/back.png" /></div>
		</div>
		</div>

</div>
<div style="display: none">
<asp:HiddenField ID="hidID" Value="0" runat="server" />
<asp:TextBox ID="txtStrKeyWord" CssClass="TextBox" Text="" runat="server" Visible="true"></asp:TextBox>
<asp:TextBox ID="txtKeyword" CssClass="TextBox" Text="" runat="server" Visible="true"></asp:TextBox>
</div>
</ContentTemplate>
</asp:UpdatePanel>
